﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Ipmce.RemoteVoting.Backend.DataAccess.UnitTests
{
	[TestClass]
	public class CandidateListProviderTests
	{
		[TestMethod]
		public void TestGetCandidateList()
		{
			using (var context = new RemoteVotingContext(ObjectMother.ConnectionString))
			{
				var provider = new CandidateListProvider(context);
				var result = provider.GetCandidateList();
				Assert.IsNotNull(result);
				Assert.IsTrue(result.Count > 0);
			}
		}
	}
}
